<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::BoxConstrainedShrinkingProblem&lt; Problem &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_box_constrained_shrinking_problem.html">BoxConstrainedShrinkingProblem</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_box_constrained_shrinking_problem-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::BoxConstrainedShrinkingProblem&lt; Problem &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_box_constrained_problems_8h_source.html">shark/Algorithms/QP/BoxConstrainedProblems.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::BoxConstrainedShrinkingProblem&lt; Problem &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_box_constrained_shrinking_problem__inherit__graph.png" border="0" usemap="#ashark_1_1_box_constrained_shrinking_problem_3_01_problem_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_box_constrained_shrinking_problem_3_01_problem_01_4_inherit__map" id="ashark_1_1_box_constrained_shrinking_problem_3_01_problem_01_4_inherit__map">
<area shape="rect" title=" " alt="" coords="13,109,221,150"/>
<area shape="rect" href="structshark_1_1_box_based_shrinking_strategy.html" title=" " alt="" coords="5,5,229,61"/>
<area shape="poly" title=" " alt="" coords="120,77,120,109,114,109,114,77"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac8a3920dc82f084fa2bf75df70eb2134" id="r_ac8a3920dc82f084fa2bf75df70eb2134"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_shrinking_problem.html#ac8a3920dc82f084fa2bf75df70eb2134">BoxConstrainedShrinkingProblem</a> (Problem &amp;problem, bool <a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#aaa20fc55d3f28d930e26ca577621c44d">shrink</a>=true)</td></tr>
<tr class="separator:ac8a3920dc82f084fa2bf75df70eb2134"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structshark_1_1_box_based_shrinking_strategy"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structshark_1_1_box_based_shrinking_strategy')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="structshark_1_1_box_based_shrinking_strategy.html">shark::BoxBasedShrinkingStrategy&lt; BoxConstrainedProblem&lt; Problem &gt; &gt;</a></td></tr>
<tr class="memitem:a80dbbcad0a023740c8d0bfa4a6ac4a99 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_a80dbbcad0a023740c8d0bfa4a6ac4a99"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a80dbbcad0a023740c8d0bfa4a6ac4a99">BoxBasedShrinkingStrategy</a> (ProblemT &amp;problem, bool shrink=true)</td></tr>
<tr class="separator:a80dbbcad0a023740c8d0bfa4a6ac4a99 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bddc03ff11fb5f104e2f1000c7b2093 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_a1bddc03ff11fb5f104e2f1000c7b2093"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a1bddc03ff11fb5f104e2f1000c7b2093">updateSMO</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="separator:a1bddc03ff11fb5f104e2f1000c7b2093 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa20fc55d3f28d930e26ca577621c44d inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_aaa20fc55d3f28d930e26ca577621c44d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#aaa20fc55d3f28d930e26ca577621c44d">shrink</a> (double epsilon)</td></tr>
<tr class="separator:aaa20fc55d3f28d930e26ca577621c44d inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adff09578370110d58328cf69e965a5fe inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_adff09578370110d58328cf69e965a5fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#adff09578370110d58328cf69e965a5fe">unshrink</a> ()</td></tr>
<tr class="memdesc:adff09578370110d58328cf69e965a5fe inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unshrink the problem.  <br /></td></tr>
<tr class="separator:adff09578370110d58328cf69e965a5fe inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9a1833825c43ee5492fde78d85cf0c5 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_af9a1833825c43ee5492fde78d85cf0c5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#af9a1833825c43ee5492fde78d85cf0c5">setShrinking</a> (bool shrinking)</td></tr>
<tr class="separator:af9a1833825c43ee5492fde78d85cf0c5 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e718159c7a2ae9bb6e828792da068e3 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_a6e718159c7a2ae9bb6e828792da068e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a6e718159c7a2ae9bb6e828792da068e3">setInitialSolution</a> (RealVector const &amp;alpha, RealVector const &amp;gradient, RealVector const &amp;gradientEdge)</td></tr>
<tr class="memdesc:a6e718159c7a2ae9bb6e828792da068e3 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define the initial solution for the iterative solver.  <br /></td></tr>
<tr class="separator:a6e718159c7a2ae9bb6e828792da068e3 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad81b0fa8a8c66781fcfdc126c49cd27e inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_ad81b0fa8a8c66781fcfdc126c49cd27e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#ad81b0fa8a8c66781fcfdc126c49cd27e">setInitialSolution</a> (RealVector const &amp;alpha)</td></tr>
<tr class="memdesc:ad81b0fa8a8c66781fcfdc126c49cd27e inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define the initial solution for the iterative solver.  <br /></td></tr>
<tr class="separator:ad81b0fa8a8c66781fcfdc126c49cd27e inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28001ad176039adccb83869d0b0867f8 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_a28001ad176039adccb83869d0b0867f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a28001ad176039adccb83869d0b0867f8">deactivateVariable</a> (std::size_t i)</td></tr>
<tr class="memdesc:a28001ad176039adccb83869d0b0867f8 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the i-th example from the problem.  <br /></td></tr>
<tr class="separator:a28001ad176039adccb83869d0b0867f8 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb019d7a60a63b0555442f946fc346e3 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_abb019d7a60a63b0555442f946fc346e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#abb019d7a60a63b0555442f946fc346e3">scaleBoxConstraints</a> (double factor, double variableScalingFactor)</td></tr>
<tr class="memdesc:abb019d7a60a63b0555442f946fc346e3 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scales all box constraints by a constant factor and adapts the solution by scaling it by the same factor.  <br /></td></tr>
<tr class="separator:abb019d7a60a63b0555442f946fc346e3 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab68691e44171a2cc4659c19c9a0125d6 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_ab68691e44171a2cc4659c19c9a0125d6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#ab68691e44171a2cc4659c19c9a0125d6">setLinear</a> (std::size_t i, double newValue)</td></tr>
<tr class="memdesc:ab68691e44171a2cc4659c19c9a0125d6 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="mdescLeft">&#160;</td><td class="mdescRight">adapts the linear part of the problem and updates the internal data structures accordingly.  <br /></td></tr>
<tr class="separator:ab68691e44171a2cc4659c19c9a0125d6 inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a123fe7062f93d420c0e0350500791bfa inherit pub_methods_structshark_1_1_box_based_shrinking_strategy" id="r_a123fe7062f93d420c0e0350500791bfa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a123fe7062f93d420c0e0350500791bfa">flipCoordinates</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:a123fe7062f93d420c0e0350500791bfa inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="mdescLeft">&#160;</td><td class="mdescRight">swap indizes (i,j)  <br /></td></tr>
<tr class="separator:a123fe7062f93d420c0e0350500791bfa inherit pub_methods_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_box_constrained_problem"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_box_constrained_problem')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem&lt; Problem &gt;</a></td></tr>
<tr class="memitem:a5544fa68b725cb68c8af64b4133a7c74 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a5544fa68b725cb68c8af64b4133a7c74"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a5544fa68b725cb68c8af64b4133a7c74">BoxConstrainedProblem</a> (Problem &amp;problem)</td></tr>
<tr class="separator:a5544fa68b725cb68c8af64b4133a7c74 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ac86914b79e249895e9aa37a2eee055 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a9ac86914b79e249895e9aa37a2eee055"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">dimensions</a> () const</td></tr>
<tr class="separator:a9ac86914b79e249895e9aa37a2eee055 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0541d4c711a6d82bf2063d9cf030e551 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a0541d4c711a6d82bf2063d9cf030e551"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a0541d4c711a6d82bf2063d9cf030e551">active</a> () const</td></tr>
<tr class="separator:a0541d4c711a6d82bf2063d9cf030e551 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b7f562555c6f3718b059eee25bf765 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a11b7f562555c6f3718b059eee25bf765"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a11b7f562555c6f3718b059eee25bf765">boxMin</a> (std::size_t i) const</td></tr>
<tr class="separator:a11b7f562555c6f3718b059eee25bf765 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2f65f5e6c2917efadd23806ba823ff2 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_ad2f65f5e6c2917efadd23806ba823ff2"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f65f5e6c2917efadd23806ba823ff2">boxMax</a> (std::size_t i) const</td></tr>
<tr class="separator:ad2f65f5e6c2917efadd23806ba823ff2 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a066c7548372975c1dd243147c0adc1a3 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a066c7548372975c1dd243147c0adc1a3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a066c7548372975c1dd243147c0adc1a3">isLowerBound</a> (std::size_t i) const</td></tr>
<tr class="separator:a066c7548372975c1dd243147c0adc1a3 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a598687378bfc492935546439156d9836 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a598687378bfc492935546439156d9836"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a598687378bfc492935546439156d9836">isUpperBound</a> (std::size_t i) const</td></tr>
<tr class="separator:a598687378bfc492935546439156d9836 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a697ec9eb72894c871731ff96c880fb26 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a697ec9eb72894c871731ff96c880fb26"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a697ec9eb72894c871731ff96c880fb26">isDeactivated</a> (std::size_t i) const</td></tr>
<tr class="separator:a697ec9eb72894c871731ff96c880fb26 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66e89cd77e2cebd9f47b0c1777976aa0 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a66e89cd77e2cebd9f47b0c1777976aa0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae6ac16940dad311fe5702588be55ce85">MatrixType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a66e89cd77e2cebd9f47b0c1777976aa0">quadratic</a> ()</td></tr>
<tr class="memdesc:a66e89cd77e2cebd9f47b0c1777976aa0 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="mdescLeft">&#160;</td><td class="mdescRight">representation of the quadratic part of the objective function  <br /></td></tr>
<tr class="separator:a66e89cd77e2cebd9f47b0c1777976aa0 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73aaea4e475b7d635e48f793202716c9 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a73aaea4e475b7d635e48f793202716c9"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a73aaea4e475b7d635e48f793202716c9">linear</a> (std::size_t i) const</td></tr>
<tr class="separator:a73aaea4e475b7d635e48f793202716c9 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0e263a6f4ea23985dd6e4b658e0a047 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_ae0e263a6f4ea23985dd6e4b658e0a047"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">alpha</a> (std::size_t i) const</td></tr>
<tr class="separator:ae0e263a6f4ea23985dd6e4b658e0a047 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b54b554bd89a28a03d63d8dcc97f101 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a4b54b554bd89a28a03d63d8dcc97f101"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a4b54b554bd89a28a03d63d8dcc97f101">diagonal</a> (std::size_t i) const</td></tr>
<tr class="separator:a4b54b554bd89a28a03d63d8dcc97f101 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae716d77fe6226ae3d032e39586f54219 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_ae716d77fe6226ae3d032e39586f54219"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">gradient</a> (std::size_t i) const</td></tr>
<tr class="separator:ae716d77fe6226ae3d032e39586f54219 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4d7bdfee487c84a8a3eea33a4848fd7 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_aa4d7bdfee487c84a8a3eea33a4848fd7"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#aa4d7bdfee487c84a8a3eea33a4848fd7">permutation</a> (std::size_t i) const</td></tr>
<tr class="separator:aa4d7bdfee487c84a8a3eea33a4848fd7 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad42a5a9b13d427f07fe532c2a02f88fc inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_ad42a5a9b13d427f07fe532c2a02f88fc"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ad42a5a9b13d427f07fe532c2a02f88fc">getUnpermutedAlpha</a> () const</td></tr>
<tr class="separator:ad42a5a9b13d427f07fe532c2a02f88fc inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b5309afbd6858c2315e315bed865ff6 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a9b5309afbd6858c2315e315bed865ff6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a9b5309afbd6858c2315e315bed865ff6">functionValue</a> () const</td></tr>
<tr class="memdesc:a9b5309afbd6858c2315e315bed865ff6 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current function value of the problem.  <br /></td></tr>
<tr class="separator:a9b5309afbd6858c2315e315bed865ff6 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d8e3e168039a9f71b9b1ed0f3b9dc23 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a5d8e3e168039a9f71b9b1ed0f3b9dc23"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a5d8e3e168039a9f71b9b1ed0f3b9dc23">shrink</a> (double)</td></tr>
<tr class="separator:a5d8e3e168039a9f71b9b1ed0f3b9dc23 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a379f06bbd07f0f7851596b5a43f53d3d inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a379f06bbd07f0f7851596b5a43f53d3d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a379f06bbd07f0f7851596b5a43f53d3d">reshrink</a> ()</td></tr>
<tr class="separator:a379f06bbd07f0f7851596b5a43f53d3d inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac897d9b6915bf6899c7f456d63d15503 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_ac897d9b6915bf6899c7f456d63d15503"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ac897d9b6915bf6899c7f456d63d15503">unshrink</a> ()</td></tr>
<tr class="separator:ac897d9b6915bf6899c7f456d63d15503 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60cc7449d9f0d93d843780aa3fd36c72 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a60cc7449d9f0d93d843780aa3fd36c72"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">setInitialSolution</a> (RealVector const &amp;alpha, RealVector const &amp;gradient)</td></tr>
<tr class="memdesc:a60cc7449d9f0d93d843780aa3fd36c72 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define the initial solution for the iterative solver.  <br /></td></tr>
<tr class="separator:a60cc7449d9f0d93d843780aa3fd36c72 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5182e43e8faad6b4996ab251e126032 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_ae5182e43e8faad6b4996ab251e126032"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae5182e43e8faad6b4996ab251e126032">setInitialSolution</a> (RealVector const &amp;alpha)</td></tr>
<tr class="memdesc:ae5182e43e8faad6b4996ab251e126032 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define the initial solution for the iterative solver.  <br /></td></tr>
<tr class="separator:ae5182e43e8faad6b4996ab251e126032 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addce0a45f76c289e79eb03012b26efaf inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_addce0a45f76c289e79eb03012b26efaf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">deactivateVariable</a> (std::size_t i)</td></tr>
<tr class="memdesc:addce0a45f76c289e79eb03012b26efaf inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the i-th example from the problem.  <br /></td></tr>
<tr class="separator:addce0a45f76c289e79eb03012b26efaf inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e70b06e9879ac5d14192b7b1ed551c9 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a3e70b06e9879ac5d14192b7b1ed551c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a3e70b06e9879ac5d14192b7b1ed551c9">activateVariable</a> (std::size_t i)</td></tr>
<tr class="memdesc:a3e70b06e9879ac5d14192b7b1ed551c9 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reactivate an previously deactivated variable.  <br /></td></tr>
<tr class="separator:a3e70b06e9879ac5d14192b7b1ed551c9 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a000d9bb8ba192023087461a40cd284d1 inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_a000d9bb8ba192023087461a40cd284d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a000d9bb8ba192023087461a40cd284d1">flipCoordinates</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:a000d9bb8ba192023087461a40cd284d1 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="mdescLeft">&#160;</td><td class="mdescRight">exchange two variables via the permutation  <br /></td></tr>
<tr class="separator:a000d9bb8ba192023087461a40cd284d1 inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af60ac2b478f7a141fca100daa8217edd inherit pub_methods_classshark_1_1_box_constrained_problem" id="r_af60ac2b478f7a141fca100daa8217edd"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#af60ac2b478f7a141fca100daa8217edd">checkKKT</a> () const</td></tr>
<tr class="separator:af60ac2b478f7a141fca100daa8217edd inherit pub_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_structshark_1_1_box_based_shrinking_strategy"><td colspan="2" onclick="javascript:toggleInherit('pub_types_structshark_1_1_box_based_shrinking_strategy')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="structshark_1_1_box_based_shrinking_strategy.html">shark::BoxBasedShrinkingStrategy&lt; BoxConstrainedProblem&lt; Problem &gt; &gt;</a></td></tr>
<tr class="memitem:a0d3ff342a04259d796737f143756c170 inherit pub_types_structshark_1_1_box_based_shrinking_strategy" id="r_a0d3ff342a04259d796737f143756c170"><td class="memItemLeft" align="right" valign="top">typedef Problem::QpFloatType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a0d3ff342a04259d796737f143756c170">QpFloatType</a></td></tr>
<tr class="separator:a0d3ff342a04259d796737f143756c170 inherit pub_types_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75302b71e238815a8b5c8dc663add783 inherit pub_types_structshark_1_1_box_based_shrinking_strategy" id="r_a75302b71e238815a8b5c8dc663add783"><td class="memItemLeft" align="right" valign="top">typedef Problem::MatrixType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a75302b71e238815a8b5c8dc663add783">MatrixType</a></td></tr>
<tr class="separator:a75302b71e238815a8b5c8dc663add783 inherit pub_types_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e49b05f112110b820b466c39ac9042e inherit pub_types_structshark_1_1_box_based_shrinking_strategy" id="r_a8e49b05f112110b820b466c39ac9042e"><td class="memItemLeft" align="right" valign="top">typedef Problem::PreferedSelectionStrategy&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a8e49b05f112110b820b466c39ac9042e">PreferedSelectionStrategy</a></td></tr>
<tr class="separator:a8e49b05f112110b820b466c39ac9042e inherit pub_types_structshark_1_1_box_based_shrinking_strategy"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_box_constrained_problem"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_box_constrained_problem')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem&lt; Problem &gt;</a></td></tr>
<tr class="memitem:ad543ba354e420a5689e44919a44d190d inherit pub_types_classshark_1_1_box_constrained_problem" id="r_ad543ba354e420a5689e44919a44d190d"><td class="memItemLeft" align="right" valign="top">typedef SVMProblem::QpFloatType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ad543ba354e420a5689e44919a44d190d">QpFloatType</a></td></tr>
<tr class="separator:ad543ba354e420a5689e44919a44d190d inherit pub_types_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6ac16940dad311fe5702588be55ce85 inherit pub_types_classshark_1_1_box_constrained_problem" id="r_ae6ac16940dad311fe5702588be55ce85"><td class="memItemLeft" align="right" valign="top">typedef SVMProblem::MatrixType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae6ac16940dad311fe5702588be55ce85">MatrixType</a></td></tr>
<tr class="separator:ae6ac16940dad311fe5702588be55ce85 inherit pub_types_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a09c817b94eb35a5b80ecf647149b95 inherit pub_types_classshark_1_1_box_constrained_problem" id="r_a9a09c817b94eb35a5b80ecf647149b95"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_maximum_gain_criterion.html">MaximumGainCriterion</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a9a09c817b94eb35a5b80ecf647149b95">PreferedSelectionStrategy</a></td></tr>
<tr class="separator:a9a09c817b94eb35a5b80ecf647149b95 inherit pub_types_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classshark_1_1_box_constrained_problem"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classshark_1_1_box_constrained_problem')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem&lt; Problem &gt;</a></td></tr>
<tr class="memitem:ad2f62b98e7f7cd1ae112445192f27a1b inherit pro_methods_classshark_1_1_box_constrained_problem" id="r_ad2f62b98e7f7cd1ae112445192f27a1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">updateAlphaStatus</a> (std::size_t i)</td></tr>
<tr class="separator:ad2f62b98e7f7cd1ae112445192f27a1b inherit pro_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae85edb4b01745005489b5ced51e4253e inherit pro_methods_classshark_1_1_box_constrained_problem" id="r_ae85edb4b01745005489b5ced51e4253e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae85edb4b01745005489b5ced51e4253e">testShrinkVariable</a> (std::size_t a, double largestUp, double smallestDown) const</td></tr>
<tr class="separator:ae85edb4b01745005489b5ced51e4253e inherit pro_methods_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classshark_1_1_box_constrained_problem"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classshark_1_1_box_constrained_problem')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem&lt; Problem &gt;</a></td></tr>
<tr class="memitem:a4fb5abe606ff4359daa992960634f5a8 inherit pro_attribs_classshark_1_1_box_constrained_problem" id="r_a4fb5abe606ff4359daa992960634f5a8"><td class="memItemLeft" align="right" valign="top">Problem &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">m_problem</a></td></tr>
<tr class="separator:a4fb5abe606ff4359daa992960634f5a8 inherit pro_attribs_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ce2ae73fbcee010525160761665fa03 inherit pro_attribs_classshark_1_1_box_constrained_problem" id="r_a3ce2ae73fbcee010525160761665fa03"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">m_gradient</a></td></tr>
<tr class="memdesc:a3ce2ae73fbcee010525160761665fa03 inherit pro_attribs_classshark_1_1_box_constrained_problem"><td class="mdescLeft">&#160;</td><td class="mdescRight">gradient of the objective function at the current alpha  <br /></td></tr>
<tr class="separator:a3ce2ae73fbcee010525160761665fa03 inherit pro_attribs_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a575b8d0676d0e0f1ab8f476c0e28e434 inherit pro_attribs_classshark_1_1_box_constrained_problem" id="r_a575b8d0676d0e0f1ab8f476c0e28e434"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a575b8d0676d0e0f1ab8f476c0e28e434">m_active</a></td></tr>
<tr class="separator:a575b8d0676d0e0f1ab8f476c0e28e434 inherit pro_attribs_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebedd6dc4e4e1511da942671351e5acf inherit pro_attribs_classshark_1_1_box_constrained_problem" id="r_aebedd6dc4e4e1511da942671351e5acf"><td class="memItemLeft" align="right" valign="top">std::vector&lt; char &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">m_alphaStatus</a></td></tr>
<tr class="separator:aebedd6dc4e4e1511da942671351e5acf inherit pro_attribs_classshark_1_1_box_constrained_problem"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class Problem&gt;<br />
class shark::BoxConstrainedShrinkingProblem&lt; Problem &gt;</div>
<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00404">404</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac8a3920dc82f084fa2bf75df70eb2134" name="ac8a3920dc82f084fa2bf75df70eb2134"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8a3920dc82f084fa2bf75df70eb2134">&#9670;&#160;</a></span>BoxConstrainedShrinkingProblem()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Problem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_box_constrained_shrinking_problem.html">shark::BoxConstrainedShrinkingProblem</a>&lt; Problem &gt;::BoxConstrainedShrinkingProblem </td>
          <td>(</td>
          <td class="paramtype">Problem &amp;&#160;</td>
          <td class="paramname"><em>problem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shrink</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00406">406</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/QP/<a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
